package com.mayikt.consumer.bo;

/**
 * @program: mayikt-pay-parent
 * @ClassName Test
 * @description:
 * @author: wangjin
 * @create: 2023-06-07 09:21
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {
        String str = "hello how are you ? i am fine";
        String[] all = str.split(" ");
        String aa = "";
        for (int i = 0; i < all.length; i++) {
            // System.out.println(all[all.length - 1 - i]);
            aa += all[all.length - 1 - i] + " ";
        }
        System.out.println(aa);
    }
}
